/* 主内容区 */
.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

/* 轮播图容器 */
.carousel-container {
    height: 60vh;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto 40px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* 轮播图主体 */
.carousel {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease;
}

/* 单张轮播图 */
.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片标题 */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.slide:hover .slide-caption {
    opacity: 1;
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 30px;
}

.carousel-btn.next {
    right: 30px;
}

/* 帖子展示区 */
.forum-posts {
    flex: 1;
    padding: 0 10%;
}

.forum-posts h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.post-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card h4 {
    color: #3498db;
    margin-bottom: 12px;
}

.post-excerpt {
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 15px;
}